package cn.myjerry.sort.refType;

/**
 * 按收藏量排序的业务类（降序）
 * @author Jerry
 *
 */

public class GoodsfavComp implements java.util.Comparator<Goods>{

	@Override
	public int compare(Goods o1, Goods o2) {
		return -(o1.getFav() - o2.getFav() > 0 ? 1 : (o1.getFav() == o2.getFav() ? 0 : -1));
	}
	
}
